home *** CD-ROM | disk | FTP | other *** search
- @echo off
- cls
- echo Microsoft SQL Server Version 6.5, 120-Day Evaluation Copy
- echo.
- if (%TEMP%)==() goto TEMPERROR
- goto TEMPOKAY
- :TEMPERROR
- echo Setup cannot run: You system doesn't have a valid system TEMP
- echo variable defined. You may define a TEMP variable using the SET
- echo command, and then rerun setup.
- goto PAUSEME
- :TEMPOKAY
- if /i (%OS%)==(Windows_NT) goto OSOKAY
- :OSERROR
- echo Your Operating System cannot be determined. You may be
- echo attempting to install this software on a system that is
- echo not running Windows NT 4.0 or higher.
- goto PAUSEME
- :OSOKAY
- echo This will extract the files necessary for the SQL Server Evaluation Copy.
- echo Setup requires approximately 70MB of storage in your %TEMP% directory.
- echo.
- echo You currently have the following disk free space in %TEMP%:
- dir %TEMP% | find "bytes free"
- echo.
- echo Note: This setup cannot be run from a UNC path, only from a local
- echo drive or a mapped drive.
- echo.
- echo If you wish to cancel, please hit CTRL-C at this time,
- echo or any other key to continue with the installation.
- echo.
- pause>NUL
- if /i (%PROCESSOR_ARCHITECTURE%)==(x86) goto WINNT
- if /i (%PROCESSOR_ARCHITECTURE%)==(ALPHA) goto ALPHA
- :PROCESSORERROR
- echo Your Processor Architecture cannot be determined. You may be
- echo attempting to install this software on an unsupported platform.
- goto PAUSEME
- :ALPHA
- md %TEMP%\~sql~tmp.~__>NUL
- alpha\sqlaxp.exe -deo %TEMP%\~sql~tmp.~__\
- if ERRORLEVEL == 255 goto ALPHAOK
- if ERRORLEVEL == 1 goto ZIPERROR
- :ALPHAOK
- pushd %TEMP%\~sql~tmp.~__\alpha
- setup.exe
- popd
- goto CLEANUP
- :WINNT
- md %TEMP%\~sql~tmp.~__>NUL
- i386\sqlx86.exe -deo %TEMP%\~sql~tmp.~__\
- if ERRORLEVEL == 255 goto WINOK
- if ERRORLEVEL == 1 goto ZIPERROR
- :WINOKAY
- pushd %TEMP%\~sql~tmp.~__\i386
- setup.exe
- popd
- goto CLEANUP
- :ZIPERROR
- echo An error occured during file extraction.
- :CLEANUP
- echo Cleaning up...
- rd /Q /S %TEMP%\~sql~tmp.~__>NUL
- :PAUSEME
- echo.
- pause
- :EXIT
-